'''
Created on Aug 14, 2013

@author: Dan
'''
from random import random

# Optional format of the constructor for the OOP approach
class Player:
    def __init__(self):
        pass;

    def hunt_choices(self, round_number, current_food, current_reputation, m,
            player_reputations):
        hunt_decisions = [];
        
        # Hunt with a probability equal with the opponent's reputation
        for reputation in player_reputations:
            rnd = random();
            if (rnd < reputation):
                hunt_decisions.append('h');
            else:
                hunt_decisions.append('s');
                
        return hunt_decisions

    def hunt_outcomes(self, food_earnings):
        pass # do nothing

    def round_end(self, award, m, number_hunters):
        pass # do nothing